package edu.zqu.collegeField.project.controller;

import edu.zqu.collegeField.framework.openfeign.api.GetCollegeNameApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigInteger;

/**
 * @author 廖森
 * @Date 2020/7/18/018.
 */
@RestController
public class TestController {


    @Autowired
    private GetCollegeNameApi getCollegeNameService;

    @RequestMapping(value = "/getCollegeName/{id}", method = RequestMethod.GET)
    public String getTest(@PathVariable BigInteger id) {
        return getCollegeNameService.getCollegeName(id);
    }
}
